import random
import numpy as np
import scipy.signal as signal
x = np.arange(0,100,10)
random.shuffle(x)
print(x)
signal.medfilt(x,3)
x=np.random.randint(1,1000,(4,4))
print(x)
print(signal.medfilt(x,(3,3)))
x=np.float32(x)
print(signal.medfilt2d(x))